package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.XkMonitorGeoDao;
import wqh.domain.XkMonitorGeo;
import wqh.service.XkMonitorGeoService;

import java.util.List;

/**
 * Created by wqh on 2017/1/13.
 */
@Service("xkMonitorGeoService")
public class XkMonitorGeoServiceImpl implements XkMonitorGeoService {

    @Autowired
    private XkMonitorGeoDao dao;

    @Override
    public void save(XkMonitorGeo entity) {
        this.dao.save(entity);
    }

    @Override
    public void update(XkMonitorGeo entity) {
        this.dao.update(entity);
    }

    @Override
    public void delete(XkMonitorGeo entity) {
        this.dao.delete(entity);
    }

    @Override
    public void deleteAll() {
        this.dao.deleteAll();
    }

    @Override
    public List<XkMonitorGeo> findAll() {
        return this.dao.findAll();
    }

    @Override
    public XkMonitorGeo findById(Long id) {
        return this.dao.findById(id);
    }

    @Override
    public XkMonitorGeo findByDeviceIdAndSensorId(Integer sensor_id, Long device_id) {
        return dao.findByDeviceIdAndSensorId(sensor_id, device_id);
    }

    @Override
    public List<XkMonitorGeo> findByGeoId(Long geo_id) {
        return dao.findByGeoId(geo_id);
    }
}
